#include "searcher.hpp"
#include <memory>

const std::string input = "data/raw_html/raw.txt";

int main()
{
    // for test

    std::shared_ptr<ns_seracher::Searcher> search = std::make_shared<ns_seracher::Searcher>();
    search->InitSeracher(input); 

    std::string query;
    std::string json_string;
    while(true) {
        std::cout << "Please Enter You Search Query# ";
        std::getline(std::cin, query);
        search->Search(query, &json_string);

        std::cout << json_string << std::endl;
    }

    return 0;
}